
l = [x * x for x in range(1, 11)]
print(l)

g = (x * x for x in range(1, 11))
print("next:",next(g))
print("next:",next(g))
for s in g:
    print(s)


